package com.atguigu.single;

/**
 * @ClassName Node
 * @DeScription 单向链表的实体类
 * @Author 剧情再美终是戏
 * @Date 2019/11/19 20:13
 * @Version 1.0
 **/
public class Node {

    private int id;

    private String name;

    private String des;

    private Node next;

    public Node(int id, String name, String des) {
        this.id = id;
        this.name = name;
        this.des = des;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", des='" + des + '\'' +
                '}';
    }
}
